import React, { Component } from 'react';
import { Div } from './footer'
import layout from '@/hoc/layout';
import connect from './connect';
@connect
@layout
class Footer extends Component {
    render() {
        let { path } = this.props.match
        return (
            <Div>
                {
                    this.props.arr.map((item, index) => (
                        <p key={index} onClick={e=>{
                            this.props.history.push(path + item.path)
                        }}>
                            {item.id}
                        </p>
                    ))
                }
            </Div>
        );
    }
}

// export default layout(Footer);
export default Footer;
